﻿package Message.Public
{
    import Framework.MQ.*;
    import Framework.Serialize.*;

    public class SDefenseCopyInfo extends IMessageBase
    {
        public var mainFightIndex:int;
        public var mainBoss:int;
        public var surplusSeconds:int;
        public var totalIndex:int;
        public var nextWaveSeconds:int;
        public const _type:int = 5017;
        public static var _regist:SDefenseCopyInfo = new SDefenseCopyInfo(true);

        public function SDefenseCopyInfo(param1:Boolean = false)
        {
            if (param1)
            {
                MessageManager.instance().regist(this);
            }
            return;
        }// end function

        override public function getType() : int
        {
            return this._type;
        }// end function

        override public function clone() : IMessageBase
        {
            return new SDefenseCopyInfo();
        }// end function

        override public function __write(param1:SerializeStream) : void
        {
            param1.writeInt(this.mainFightIndex);
            param1.writeInt(this.mainBoss);
            param1.writeInt(this.surplusSeconds);
            param1.writeInt(this.totalIndex);
            param1.writeInt(this.nextWaveSeconds);
            return;
        }// end function

        override public function __read(param1:SerializeStream) : void
        {
            this.mainFightIndex = param1.readInt();
            this.mainBoss = param1.readInt();
            this.surplusSeconds = param1.readInt();
            this.totalIndex = param1.readInt();
            this.nextWaveSeconds = param1.readInt();
            return;
        }// end function

    }
}
